#include "widget.h"
#include "ui_widget.h"
#include "thread.h"


Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    Thread t;
    Thread s;
    t.start();
    s.start();

    t.wait();
    s.wait();
    qDebug() << Thread::m;
}

Widget::~Widget()
{
    delete ui;
}
